package com.hz.house.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 

@Configuration
public class Webconfig implements WebMvcConfigurer{

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		//只拦截后台管理请求，以bk开头
		//registry.addInterceptor(new BackGroundInteceptor()).addPathPatterns("/bk/**");
		//只拦截api相关请求
		//registry.addInterceptor(new OpenApiInteceptor()).addPathPatterns("/openapi/**","/api/**");
	}
	
	

}
